import { BaseEntity } from "src/baseEntity";
import { UserSys } from "src/user/userSys.entity";
import { Entity, ManyToOne } from "typeorm";
import { Announcement } from "./announcement.entity";


@Entity("annread")
export class Annread extends BaseEntity {
    @ManyToOne(() => UserSys)
    user: UserSys

    @ManyToOne(() => Announcement, type => type.readUsers)
    ann: Announcement
}